import Vue from 'vue'
import VueI18n from 'vue-i18n'
import Cookie from 'js-cookie'
import elementZH from 'element-ui/lib/locale/lang/zh-CN' // 中文包
import elementEN from 'element-ui/lib/locale/lang/en' // 英文报
import elementJA from 'element-ui/lib/locale/lang/ja' // 英文报
import customZH from './zh' // 自定义语言包
import customEN from './en' 


Vue.use(VueI18n)
export default new VueI18n({
    locale: Cookie.get('language') || 'zh',
    messages: {
        zh: {
            ...elementZH,
            ...customZH
        },
        en: {
            ...elementEN,
            ...customEN
        },ja: {
            ...elementJA
        }
    }
})